package com.example.deviceinfo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.deviceinfo.SDCardRemove.SDCard;

public class MainActivity extends Activity {
    Button storage_btn, sdcard_btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        storage_btn = (Button) findViewById(R.id.storage_btn);
        sdcard_btn = (Button) findViewById(R.id.sdcard_btn);
        storage_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent i = new Intent();
                i.setClass(MainActivity.this, PrintDisk.class);
                startActivity(i);
            }
        });
        sdcard_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent i = new Intent();
                i.setClass(MainActivity.this, SDCard.class);
                startActivity(i);
            }
        });
    }

}
